package com.newsnetwork.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author: HuangDekai
 * @date: 2022/11/2 22:16
 * @version: 1.0
 * @since: jdk8
 */

@SpringBootApplication(exclude = {MongoAutoConfiguration.class})
@MapperScan(basePackages = "com.newsnetwork.user.mapper")
@ComponentScan({"com.newsnetwork","org.n3r"})
@EnableEurekaClient //开启 Eureka Client, 注册到server中
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
